package demoracer

class Track {

   def String name

    def static hasMany = [races:Race]

    static constraints = {
      name(size:1..100)
    }

  def String toString() {
    return name
  }
}
